/**
 * 
 */
package org.t2.game.server.module.data.saver;

import org.springframework.stereotype.Component;
import org.t2.game.server.module.bag.model.Bag;

import sh.t2.share.module.player.log.PlayerPointLog;

/**
 * 
 */
@Component
public class PlayerPointSaver extends AbstractPlayerSaver<Bag, PlayerPointLog> {

	@Override
	public long getNumber(Bag t) {
		return t.getPoint();
	}

	@Override
	protected void setNumber0(Bag t, long number) {
		t.setPoint(number);
	}

	@Override
	protected PlayerPointLog newNumberLog() {
		return new PlayerPointLog();
	}
}
